package com.kning.poiword.replace;

import com.kning.poiword.model.Chart;
import com.kning.poiword.model.Picture;
import com.kning.poiword.model.Table;
import com.kning.poiword.model.Text;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @version : 1.0
 * @author : 王康宁
 * @date : 2020/1/7
 **/
@Component
public interface ReplaceDocument {
    void replaceAllComponent(XWPFDocument document, //文档
                             List<Text> text,
                             List<Picture> picture,
                             @Nullable List<Table> table,
                             List<Chart> chart);
}
